package com.pinda.controller;


import com.github.pagehelper.PageInfo;
import com.pinda.base.entity.PdTruckType;
import com.pinda.base.search.PdFleetSearch;
import com.pinda.base.search.PdTruckTypeSearch;
import com.pinda.base.vo.FleetVo;
import com.pinda.commonutils.Page;
import com.pinda.commonutils.Result;
import com.pinda.commonutils.StatusCode;
import com.pinda.service.IPdTruckTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 车辆类型表 前端控制器
 * </p>
 *
 * @author lc
 * @since 2023-06-14
 */
@RestController
@RequestMapping("/pd_truck_type")
public class PdTruckTypeController {


    @Autowired
    IPdTruckTypeService iPdTruckTypeService;


    @RequestMapping("/queryAllTruckType")
    public Result queryAllTruckType(){
        List<PdTruckType> list = this.iPdTruckTypeService.list();
        if(!list.isEmpty()){
            return new Result(true, StatusCode.OK,"查询成功",list);
        }
        return new Result(false,StatusCode.ERROR,"查询失败",list);
    }







}
